package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.MonitoringDao;
import com.site.wisdom_construction.entity.iotModule.Monitoring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/3/7
 * @Description
 */
@Service
public class MonitoringService implements MonitoringDao {
    @Autowired
    private MonitoringDao monitoringDao;

    @Override
    public int insertMonitoring(Map map) {
        return monitoringDao.insertMonitoring(map);
    }

    @Override
    public int deleteMonitoring(Map map) {
        return monitoringDao.deleteMonitoring(map);
    }

    @Override
    public int updateMonitoring(Map map) {
        return monitoringDao.updateMonitoring(map);
    }

    @Override
    public List<Monitoring> findMonitoring(Map map) {
        return monitoringDao.findMonitoring(map);
    }

    @Override
    public long Total(Map map) {
        return monitoringDao.Total(map);
    }

    @Override
    public Integer countMonitoring(Map map) {
        return monitoringDao.countMonitoring(map);
    }
}
